package com.hidtechs.popfax.iconifiedList;


import java.util.ArrayList;

import android.app.ListActivity;
import android.app.ProgressDialog;
import android.os.Bundle;

import com.hidtechs.popfax.controller.Constants;
//import com.hidtechs.popfax.view.Inbox;
import com.hidtechs.popfax.xml.ParsedInboxDataSet;

public class TestLayout extends ListActivity  {
	protected ArrayList<Object> arrayOfObjectOfParsedData;
	protected ArrayList arrayListretrieve[];
	private ProgressDialog progressDialog ;
	Character class_type='i';
	
	
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        
        System.out.println("testlayout");
        
        progressDialog = ProgressDialog.show(this,Constants.DIALOG_WAIT_MSG,Constants.INBOX_DATA_RETRIEVING_MSG, true,false);
        
        arrayListretrieve = new ArrayList[arrayOfObjectOfParsedData.size()];
        
        IconifiedTextListAdapter itla = new IconifiedTextListAdapter(this,class_type);
        
        System.out.println(arrayOfObjectOfParsedData.size());
        for(int i=0;i<arrayOfObjectOfParsedData.size();i++)
        {
        	arrayListretrieve[i]= new ArrayList();
        	arrayListretrieve[i].add(((ParsedInboxDataSet)(arrayOfObjectOfParsedData.get(i))).getFrom());
        	arrayListretrieve[i].add(((ParsedInboxDataSet)(arrayOfObjectOfParsedData.get(i))).getPages());
        	arrayListretrieve[i].add(((ParsedInboxDataSet)(arrayOfObjectOfParsedData.get(i))).getDate());
        	itla.addItem(arrayListretrieve[i]);
        }
        
        setListAdapter(itla);
        
               
    }
    
    
}